const oc = require("../controllers/order.server.controller");
var express = require('express');
var router = express.Router();

router.route("/complaint")
    .get(oc.listComplaint);

router.get("/", oc.listOrders)
    .post("/", oc.addOrder)
    .put("/:oId",oc.scoreAndComplaint)
    .get("/:oId",oc.getComplaintOrderResult);

module.exports = router;
